package com.hy.domain;


import com.hy.anno.MyAutowried;
import org.springframework.beans.factory.annotation.Autowired;

public class Person {

	@Autowired
	private Student student;  //@1

	private String name;

	@MyAutowried
	public Person(String name) {
		System.out.println("调用 person name");
		this.name = name;
	}

	public Person(Student student, String name) {
		this.student = student;
		this.name = name;
	}

	@Override
	public String toString() {
		return "stu: "+student.toString();
	}
}
